package io.geekidea.boot.area.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.geekidea.boot.common.BaseEntity;
import io.geekidea.boot.system.entity.SysUser;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 战区实体类（tb_area）
 */

@Data
@TableName("tb_area")
public class Area extends BaseEntity implements Serializable {


    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("code")
    private String code;

    @TableField("userId")
    private Integer userId;

    @TableField(exist = false)
    private SysUser user;

    @TableField("principal")
    private String principal;

    @TableField("phoneNumber")
    private String phoneNumber;

    @TableField("status")
    private String status;

}
